package cn.lizemin.demo.generic;

/**
 * @author: lizemin
 * @version: 1.0
 */
//定义泛型类
public class ObjectTool<T> {
    private T t;
    //获取对象属性
    public T getObject(){
        return t;
    }
    //设置对象属性
    public void setObject(T t){
        this.t = t;
    }

    public static <E> void eat(E e){
        System.out.println("dadsfa");
    }



    public ObjectTool(T t) {
        this.t = t;
    }

    public ObjectTool() {
    }
}
